package org.dxy.api.dto.request.workorder;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 创建工单请求
 */
@Data
public class CreateWorkOrderRequest {
    /** 工单编码 */
    @NotBlank(message = "工单编码不能为空")
    private String workOrderCode;
    
    /** 产品ID */
    @NotNull(message = "产品ID不能为空")
    private Long productId;
    
    /** 计划数量 */
    @NotNull(message = "计划数量不能为空")
    private Integer plannedQuantity;
    
    /** 工艺路线ID*/
    @NotNull(message = "工艺路线ID不能为空")
    private Long routeId;
    
    /** 产线ID */
    @NotNull(message = "产线ID不能为空")
    private Long productionLineId;
}